#include "startuppage.h"

#include <QLabel>
#include <QTimer>

StartupPage::StartupPage(QDialog *parent)
    : QDialog{parent}
{
    setWindowFlags(Qt::FramelessWindowHint | Qt::Tool);
    setFixedSize(1450, 860);
    setStyleSheet("background-color : #FFFFFF");

    // 在窗口中显示图片
    QLabel* imageLabel = new QLabel(this);
    imageLabel->setPixmap(QPixmap(":/images/startupPage/biteshipin.png"));
    imageLabel->move(524, 374);
}

void StartupPage::startTimer()
{
    QTimer* timer = new QTimer();
    connect(timer, &QTimer::timeout, this, [=]{
        timer->stop();
        delete timer;
        close();
    });
    timer->start(2000);
}
